package com.victor.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 购书卷表
 * 
 * @author Mr.Zhang
 *
 */
@Entity
@Table(name = "bybookcoupon")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Bybookcoupon implements Serializable {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;

	@Column(name = "money", length = 50)
	private String money;// 购书卷面额


	@Column(name = "valid_start", length = 50)
	private String valid_start;// 有效期开始时间

	@Column(name = "valid_end", length = 50)
	private String valid_end;// 有效期结束时间

	@Column(name = "number", length = 50)
	private String number;// 购书卷剩余数量
	
	@Column(name = "former_number", length = 50)
	private String former_number;//原数量
	
	@Column(name = "already_number", length = 50)
	private String already_number;//已领取数量
	
	@Column(name = "remarks", length = 50)
	private String remarks;//备注
}
